﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Jbe.Composite.Extensions;
using Jbe.TestSuite.TestDevices.Interface;
using Jbe.TestSuite.TestDevices.FunctionGenerator.ControlView.Services;

namespace Jbe.TestSuite.TestDevices.FunctionGenerator.ControlView.Applications
{
    internal class ModuleController
    {
        private readonly IApplicationContainer container;
        private readonly ITestDeviceManager testDeviceManager;


        public ModuleController(IApplicationContainer container, ITestDeviceManager testDeviceManager)
        {
            this.container = container;
            this.testDeviceManager = testDeviceManager;
        }


        public void Initialize()
        {
            testDeviceManager.Register(container.Resolve<ViewControllerFactory>());
        }
    }
}
